<?php
class CMS_Controller{
	
protected static $instance = null;	
	
	private $view;

	
	
	
	
public static function singleton()
    {
        if(!isset(self::$instance))
        {
        self::$instance = new self();
        //echo "new instance\n";
        } else {
        //echo "old instance\n";
        }
        return self::$instance;
    }
	
	
    
    
    public function getView(){
    	
    	
    	echo $a = Registry_Registry::getObject('module');
    	dump(Registry_Registry::singleton());
    	
    	return  $this->view;
    	
    	
    }
    
    
    
    
    
    
}